home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / itemedit.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  4.2 KB  |  123 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'ItemEdit.pas' rev: 3.00
  6.  
  7. #ifndef ItemEditHPP
  8. #define ItemEditHPP
  9. #include <LibHelp.hpp>
  10. #include <ComCtrls.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Dialogs.hpp>
  13. #include <Forms.hpp>
  14. #include <Controls.hpp>
  15. #include <Graphics.hpp>
  16. #include <Classes.hpp>
  17. #include <Messages.hpp>
  18. #include <Windows.hpp>
  19. #include <SysUtils.hpp>
  20. #include <SysInit.hpp>
  21. #include <System.hpp>
  22.  
  23. //-- user supplied -----------------------------------------------------------
  24.  
  25. namespace Itemedit
  26. {
  27. //-- type declarations -------------------------------------------------------
  28. class DELPHICLASS TItemInfo;
  29. class PASCALIMPLEMENTATION TItemInfo : public System::TObject 
  30. {
  31.     typedef System::TObject inherited;
  32.     
  33. private:
  34.     Classes::TStringList* FSubItems;
  35.     System::AnsiString FCaption;
  36.     int FImageIndex;
  37.     int FStateIndex;
  38.     
  39. public:
  40.     __fastcall TItemInfo(Comctrls::TListItem* Item);
  41.     __fastcall virtual ~TItemInfo(void);
  42. };
  43.  
  44. class DELPHICLASS TListViewItems;
  45. class PASCALIMPLEMENTATION TListViewItems : public Forms::TForm 
  46. {
  47.     typedef Forms::TForm inherited;
  48.     
  49. __published:
  50.     Stdctrls::TGroupBox* GroupBox1;
  51.     Stdctrls::TGroupBox* PropGroupBox;
  52.     Stdctrls::TButton* New;
  53.     Stdctrls::TButton* Delete;
  54.     Stdctrls::TLabel* Label1;
  55.     Stdctrls::TLabel* Label2;
  56.     Stdctrls::TLabel* Label3;
  57.     Comctrls::TTreeView* TreeView;
  58.     Stdctrls::TButton* NewSub;
  59.     Stdctrls::TEdit* Text;
  60.     Stdctrls::TEdit* Image;
  61.     Stdctrls::TEdit* StateImage;
  62.     Stdctrls::TButton* Button4;
  63.     Stdctrls::TButton* Cancel;
  64.     Stdctrls::TButton* Apply;
  65.     Stdctrls::TButton* Button7;
  66.     void __fastcall NewClick(System::TObject* Sender);
  67.     void __fastcall NewSubClick(System::TObject* Sender);
  68.     void __fastcall DeleteClick(System::TObject* Sender);
  69.     void __fastcall ValueChange(System::TObject* Sender);
  70.     void __fastcall TextExit(System::TObject* Sender);
  71.     void __fastcall ImageExit(System::TObject* Sender);
  72.     void __fastcall StateImageExit(System::TObject* Sender);
  73.     void __fastcall FormCreate(System::TObject* Sender);
  74.     void __fastcall ApplyClick(System::TObject* Sender);
  75.     void __fastcall TreeViewChange(System::TObject* Sender, Comctrls::TTreeNode* Node);
  76.     void __fastcall TreeViewChanging(System::TObject* Sender, Comctrls::TTreeNode* Node, bool &AllowChange
  77.         );
  78.     void __fastcall TreeViewDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState 
  79.         State, bool &Accept);
  80.     void __fastcall TreeViewDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
  81.     void __fastcall TreeViewEdited(System::TObject* Sender, Comctrls::TTreeNode* Node, System::AnsiString 
  82.         &S);
  83.     void __fastcall Button7Click(System::TObject* Sender);
  84.     void __fastcall TreeViewKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
  85.     void __fastcall TreeViewEditing(System::TObject* Sender, Comctrls::TTreeNode* Node, bool &AllowEdit
  86.         );
  87.     
  88. private:
  89.     Comctrls::TListItems* FItems;
  90.     bool FDropping;
  91.     void __fastcall FlushControls(void);
  92.     void __fastcall GetItem(TItemInfo* ItemInfo, Comctrls::TListItem* Value);
  93.     void __fastcall SetItem(TItemInfo* Value);
  94.     void __fastcall SetStates(void);
  95.     void __fastcall SetSubItem(const System::AnsiString S);
  96.     MESSAGE void __fastcall UMTreeEdit(Messages::TMessage &M);
  97.     
  98. public:
  99.     __property Comctrls::TListItems* Items = {read=FItems};
  100. public:
  101.     /* TCustomForm.Create */ __fastcall virtual TListViewItems(Classes::TComponent* AOwner) : Forms::TForm(
  102.         AOwner) { }
  103.     /* TCustomForm.CreateNew */ __fastcall TListViewItems(Classes::TComponent* AOwner, int Dummy) : Forms::
  104.         TForm(AOwner, Dummy) { }
  105.     /* TCustomForm.Destroy */ __fastcall virtual ~TListViewItems(void) { }
  106.     
  107. public:
  108.     /* TWinControl.CreateParented */ __fastcall TListViewItems(HWND ParentWindow) : Forms::TForm(ParentWindow
  109.         ) { }
  110.     
  111. };
  112.  
  113. //-- var, const, procedure ---------------------------------------------------
  114. #define UM_TREEEDIT (Word)(1024)
  115. extern PACKAGE bool __fastcall EditListViewItems(Comctrls::TListItems* AItems);
  116.  
  117. }    /* namespace Itemedit */
  118. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  119. using namespace Itemedit;
  120. #endif
  121. //-- end unit ----------------------------------------------------------------
  122. #endif    // ItemEdit
  123.